<?php

namespace App\Http\Controllers\home;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

use DB;

class ReplyController extends Controller
{
    public function index()
    {
        $list=DB::table('type')->get();
        $config=DB::table('config')->get();
        $reply=DB::table('reply')
                ->join('comment','reply.cid','=','comment.id')
                ->join('goods','comment.gid','=','goods.id')
                ->get();
        return view('home.user.reply',['list'=>$list,'config'=>$config,'reply'=>$reply]);
    }
}
